<template>
</template>

<script>
	export default {
		data () {
			return {
			}
		},
		onLoad:function(option) {
			console.log(option)
			if(option.code) {
				uni.showToast({
					title: '字段返回有code',
					icon: 'none'
				})
			} else if(option.projectId) {
				uni.redirectTo({
					url: `/pages/project/project_detail/project_detail?id=${option.projectId}`
				})
			} else {
				uni.showToast({
					title: JSON.stringify(option),
					icon: 'none',
					duration: 10000
				})
				// uni.redirectTo({
				// 	url: `/pages/webview/webaddress??webUrl=${encodeURIComponent(option)}`
				// })
			}
		}
	}
</script>

<style>
</style>